package com.gwsoft.weatherapp

import android.content.Context
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toolbar

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val context : Context? = null
        context?.let {
            val res = context.resources
            val appName = res.getString(R.string.app_name)
            val shorName = appName.substring(0, 2)
        }
    }
}
